package text;

import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class Test1  implements Serializable {
    private User user=new User();

    public static void main(String[] args) {
        Test1 test1=new Test1();

        try {
            FileOutputStream fs=new FileOutputStream("testoos.txt");
            ObjectOutputStream os=new ObjectOutputStream(fs);
            os.writeObject(test1.user);
            os.close();





        }catch (Exception e){
            e.printStackTrace();
        }
    }
}

class User{}
